Skip to content

derusting complete#6

Open
rifflere wants to merge 8 commits intoauberonedu:mainfrom
rifflere:main
Open

derusting complete#6
rifflere wants to merge 8 commits intoauberonedu:mainfrom
rifflere:main

Conversation

@rifflere
Copy link
Copy Markdown

@rifflere rifflere commented Jan 3, 2025

All exercises completed, and notes added to the toRefresh markdown file. Good review!

Copy link
Copy Markdown
Owner

@auberonedu auberonedu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

Comment thread src/MapPractice.java
Comment on lines +13 to +17
simpsons.put("Homer", 38);
simpsons.put("Marge", 36);
simpsons.put("Bart", 10);
simpsons.put("Lisa", 8);
simpsons.put("Maggie", 1);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun!

Comment thread src/StringPractice.java
Comment on lines +24 to +28
if (hasABitOfCalifornia) {
System.out.println("There's a little bit of California in that! ('ca')"); // expected output
} else {
System.out.println("No California here!");
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😛

Comment thread src/StringPractice.java
}

// Create an ArrayList of Strings and assign it to a variable
ArrayList<String> zoo = new ArrayList<>();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use interface types (List)

Comment thread src/StringPractice.java

public static String compareTwo (String a, String b) {
String compared = "";
if (a.contentEquals(b)) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Today I learned! I didn't know contentEquals existed. Neat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants